package com.test;


import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.XEasy.Annotation.URIMapping;
import com.XEasy.Annotation.URIMapping.Method;
import com.XEasy.FileUpload.FileUpLoad;

public class test
{
	@URIMapping(uri="123/",Method=Method.GET)
	public void t1(HttpServletResponse response,int a) throws Exception
	{
		
		response.getOutputStream().write(("hello ").getBytes());
	}
	
	
	@URIMapping(uri="file")
	public void t2(HttpServletRequest request,HttpServletResponse response)
	{
		System.out.println("Test2");
		Map<String, String> data = FileUpLoad.FileUpload(request, "c:/");
	}
	@URIMapping(uri="",Method=Method.GET)
	public String t3(HttpServletRequest request,HttpServletResponse response)
	{
		System.out.println("Test3");
		return "index";
	}
	
}
